package com.partner.frame.page;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

public abstract class PageRequest
{
//   page = 1
//   rows = 10
//   sort = id
//   order = desc

   protected int pageIndex;
   protected int pageRows;
   protected String sortField;
   protected String sortOrder;
   protected PageData pageData;
   protected Map<String, Object> pageParameter;

   public int getPageIndex()
   {
      return pageIndex;
   }

   public void setPageIndex(int pageIndex)
   {
      this.pageIndex = pageIndex;
   }

   public int getPageRows()
   {
      return pageRows;
   }

   public void setPageRows(int pageRows)
   {
      this.pageRows = pageRows;
   }

   public String getSortField()
   {
      return sortField;
   }

   public void setSortField(String sortField)
   {
      this.sortField = sortField;
   }

   public String getSortOrder()
   {
      return sortOrder;
   }

   public void setSortOrder(String sortOrder)
   {
      this.sortOrder = sortOrder;
   }

   public PageData getPageData()
   {
      return pageData;
   }

   public void setPageData(PageData pageData)
   {
      this.pageData = pageData;
   }

   public Map<String, Object> getPageParameter()
   {
      return pageParameter;
   }

   public void setPageParameter(Map<String, Object> pageParameter)
   {
      this.pageParameter = pageParameter;
   }

   public abstract void parseRequest(HttpServletRequest httpRequest);

}
